<template>
  <div class="recognizeCard" @click="goInto(domain.text,domain.title)" >
    <el-image style="width:100%; height:100%" :src="domain.url" fit="cover" ></el-image>
    <div class="cardBlock">
      <div class="title">
        {{domain.title}}
      </div>

      <div class="time">
        {{ domain.modifiedTime }}
      </div>
    </div>
  </div>
</template>
<script>

export default {
  props: ["domain"],

  data() {
    return {
      componentsKey:-1,
      
      moduleId: this.domain.id,
    };
  },
  mounted: function () {
    
  },
 
  methods: {
    goInto(tex, title) {
      this.$router.push({
        name: "ReConD",
        path: "/detail",
        params: {
          content: tex,
          title: title,
        },
      });
    },
    
  },
};
</script>
<style>
.recognizeCard .el-image{ 
  align-self: center;
  
 
}
.recognizeCard .cardBlock {
  z-index: 10;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: ease-in 0.3s;
  display: flex;
  
  
  background:rgba(0, 0, 0, 0.514);
  align-content: center;
  opacity: 0;
  position:absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  flex-wrap: wrap;
}
.recognizeCard:hover .cardBlock{ 
  transform: scaleY(1);
  opacity: 1;
  color: #fff;
  font-size: 1.4rem;
}
.recognizeCard .time {
  text-align: center;
  font-size: 13px;
  width: 250px;
}
.recognizeCard .title {
  text-align: center;
  font-weight: 900;
  width: 250px;
}
.recognizeCard {
  
 
  
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 250px;
  height: 190px;
  float: left;
  margin: 30px;
  border: solid rgba(238, 232, 232, 0.514) 1px;
  border-radius: 15px;
  
  transition: 0.3s ease;
}

</style>